<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%    
String path = request.getContextPath();    
// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";    
// 将 ”项目路径basePath” 放入pageContext中，待以后用EL表达式读出。    
// pageContext.setAttribute("basePath",basePath);    
%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户查询</title>
</head>
<script>
 function onclick_sub(){
	 
	 frm_select.submit();
	
}
</script>
<body>
<div style="width:1000px;height:500px;" >
	<div style="width:100%;height:100%;margin-top:40px;" >
		<form action ="SelectUser" name="frm_select" >
			<table align="center">
				<tr>
					<td>
					<button onclick="onclick_sub" style="background-color=#80ffff;">用户查询</button><input type="text" name="userName" size="70" placeholder="请输入用户名"  style="width:200px;height:20px;">
					</td>
					<td>
					<button onclick="onclick_sub">电话查询</button><input type="text" name="telephone" size="70" placeholder="请输入电话"  style="width:200px;height:20px;">
					</td>
					<td><button onclick="onclick_sub">性别</button>
						<select  name="gender" style="width:80px;height:20px;">
							<option value="0" selected>男</option>
							<option value="1" >女</option>
						</select>
<!-- 					性别查询：<input type="text" name="sex" size="70" placeholder="请输入性别"  style="width:200px;height:20px;"> -->
					</td>
					
				</tr>
			</table>
		</form>
	</div>
</div>

</body>
</html>